<div class="layuimini-container">
  <form id="app-form" class="layui-form layuimini-form">

    <div class="layui-form-item">
      <label class="layui-form-label">商品标题</label>
      <div class="layui-input-block">
        <input type="text" class="layui-input" disabled value="{$row.title|default=''}">
      </div>
    </div>

    <div class="layui-form-item">
      <label class="layui-form-label">库存统计</label>
      <div class="layui-input-block">
        <input type="text" class="layui-input" disabled value="{$row.total_stock|default=''}">
      </div>
    </div>

    <div class="layui-form-item">
      <label class="layui-form-label">剩余库存</label>
      <div class="layui-input-block">
        <input type="text" class="layui-input" disabled value="{$row.stock|default=''}">
      </div>
    </div>

    <div class="layui-form-item">
      <label class="layui-form-label">入库数量</label>
      <div class="layui-input-block">
        <input type="number" name="stock" class="layui-input" lay-verify="required" placeholder="请输入入库数量" value="0">
      </div>
    </div>
    {if condition="$row['apply_status']==0"}
    <div class="layui-form-item">
      <label class="layui-form-label">审核结果</label>
      <div class="layui-input-block" style="display: flex">
        <div style="display: flex;justify-content: center">
          <input type="radio" name="apply_status" class="layui-input"  checked  value="1">
          <span style="line-height: 36px;">审核通过</span>
        </div>
        <div style="display: flex;justify-content: center;padding-left: 20px;">
          <input type="radio" name="apply_status" class="layui-input"  value="2">
          <span style="line-height: 36px;">审核拒绝</span>
        </div>
      </div>
    </div>
    {else/}
    <div class="layui-form-item">
      <label class="layui-form-label">审核结果</label>
      <div class="layui-input-block" style="display: flex">
        {if condition="$row['apply_status']==1"}
        <div style="display: flex;justify-content: center">
          <input type="radio" name="apply_status" class="layui-input"  checked  value="1">
          <span style="line-height: 36px;">审核通过</span>
        </div>
        {/if}
        {if condition="$row['apply_status']==2"}
        <div style="display: flex;justify-content: center;padding-left: 20px;">
          <input type="radio" name="apply_status" class="layui-input"  checked   value="2">
          <span style="line-height: 36px;">审核拒绝</span>
        </div>
        {/if}
      </div>
    </div>
    {/if}
    <div class="layui-form-item">
      <label class="layui-form-label">审核意见</label>
      <div class="layui-input-block">
        <textarea name="apply_reason" class="layui-textarea" placeholder="请输入审核意见" >{$row['apply_reason']}</textarea>
      </div>
    </div>
    <div class="hr-line"></div>
    <div class="layui-form-item text-center">
      <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
      <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
    </div>

  </form>
</div>
<script>
  var mid ='{$mid}';
</script>